Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
rollup-plugin-sourcemaps
Advanced tools
The rollup-plugin-sourcemaps package is a Rollup plugin that allows you to include existing source maps in your build process. This is particularly useful when you are working with libraries that already have source maps, and you want to preserve them in your final bundle.
Include existing source maps
This feature allows you to include existing source maps in your Rollup build. By using the sourcemaps() plugin, Rollup will read the source maps from your input files and include them in the final bundle.
{"plugins":["sourcemaps()"]}
Generate source maps for transformed code
This feature allows you to generate source maps for the transformed code. By setting the sourcemap option to true in the output configuration and using the sourcemaps() plugin, Rollup will generate source maps for the final bundle.
{"input":"src/main.js","output":{"file":"bundle.js","format":"cjs","sourcemap":true},"plugins":["sourcemaps()"]}
The rollup-plugin-terser package is a Rollup plugin that minifies your code using Terser. While it does not directly handle source maps, it can work in conjunction with rollup-plugin-sourcemaps to minify code while preserving source maps.
The rollup-plugin-babel package is a Rollup plugin that allows you to use Babel to transpile your code. It can generate source maps for the transformed code, similar to rollup-plugin-sourcemaps, but it focuses on code transformation rather than source map inclusion.
The rollup-plugin-typescript2 package is a Rollup plugin that integrates TypeScript with Rollup. It can generate source maps for TypeScript code, similar to rollup-plugin-sourcemaps, but it is specifically designed for TypeScript projects.
Rollup plugin for grabbing source maps from sourceMappingURLs.
Useful for working with precompiled modules with existing source maps, without resorting to sorcery.
Requires Rollup v0.31.2 or later.
Inspired by webpack/source-map-loader.
import sourcemaps from 'rollup-plugin-sourcemaps';
export default {
entry: 'src/index.js',
dest: 'dist/my-awesome-package.js',
sourceMap: true,
plugins: [
sourcemaps()
]
};
0.4.2
readFile
functionbabel-preset-env
FAQs
Rollup plugin for grabbing source maps from sourceMappingURLs
The npm package rollup-plugin-sourcemaps receives a total of 262,923 weekly downloads. As such, rollup-plugin-sourcemaps popularity was classified as popular.
We found that rollup-plugin-sourcemaps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.